package com.junjie.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

public class Room implements Serializable {

    private Integer id;//主键
    private String rId;//房间的编号
    private Integer apt_id;//对应公寓的编号
    private Integer type;//类型
    private BigDecimal price;//房间租用价格
    private Integer num;//房间现存人数
    private String aptName;//获取公寓名称
    private Integer status;//房间是否还存在

    public Room() {
    }

    public Room(Integer id, String rId, Integer apt_id, Integer type, BigDecimal price, Integer num, String aptName, Integer status) {
        this.id = id;
        this.rId = rId;
        this.apt_id = apt_id;
        this.type = type;
        this.price = price;
        this.num = num;
        this.aptName = aptName;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRId() {
        return rId;
    }

    public void setRId(String rId) {
        this.rId = rId;
    }

    public Integer getAptId() {
        return apt_id;
    }

    public void setAptId(Integer apt_id) {
        this.apt_id = apt_id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getAptName() {
        return aptName;
    }

    public void setAptName(String aptName) {
        this.aptName = aptName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Room{" +
                "id=" + id +
                ", rId='" + rId + '\'' +
                ", apt_id=" + apt_id +
                ", type=" + type +
                ", price=" + price +
                ", num=" + num +
                ", aptName='" + aptName + '\'' +
                ", status=" + status +
                '}';
    }
}
